package fr.plaisance.ip;

import java.util.ResourceBundle;

import fr.plaisance.ip.noip.NoIpSender;
import fr.plaisance.ip.wimi.WhatIsMyIpFinder;


public class Ip {

	public static void main(String[] args) throws Exception {
		
		ResourceBundle bundle = ResourceBundle.getBundle("fr.plaisance.ip.ip");
		String hostname = bundle.getString("hostname");
		
		IpFinder finder = new WhatIsMyIpFinder();
		String ip = finder.findIp();
		System.out.println(ip);
		
		IpSender sender = new NoIpSender();
		sender.sendIp(hostname, "90.46.191.77");
	}
}
